package org.example.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.order.entity.Classification;

import java.util.List;

@Mapper
public interface ClassificationMapper extends BaseMapper<Classification> {
    int insertClassification(Classification classification);
    List<Classification> selectAll();
    Classification selectById(@Param("id") Long id);
    int updateClassification(Classification classification);
    /// 删除分类，对应分类的商品分类变为null
    int deleteClassification(@Param("id") Long id);
}
